<div class="mall-search-box">
	<div class="mall-search-tag">
		<ul>
		<li <{if $search_type != 'pc'}>class="active"<{/if}> onclick="javascript:search_type('cuxiao')"><span>促销</span></li>
		<li <{if $search_type == 'pc'}>class="active"<{/if}> onclick="javascript:search_type('pc')"><span>评测</span></li>
		</ul>
	</div>

	<div class="mall-search">
	<form id="search_kword" method="get" action="/s/cuxiao" name="search" onsubmit="return searchop.search_form(this)">
		<input type="hidden" name="search_type" id="search_type" <{if $search_type=='pc'}>value="pc"<{else}>value="cuxiao"<{/if}> />
		<input type="hidden" name="shop_key_id" id="shop_key_id" value="<{$shop_key_id}>" />
		<input id="kword" name="kword" type="text" class="input_text" maxlength="32" <{if $kword != ''}>value="<{$kword}>"<{else}>value="<{$search_word}>"<{/if}> />
		<a href="javascript:void(0)" onclick="javascript:return search_tab_submit();" class="btn_search"></a>			
	</form>
	</div>
	
	<p class="key">热门：
		<{foreach from=$hotword key=key item=item name=hotword}>
		<a href="<{$item.url}>" target="<{$item.target}>"><{$item.name}></a>
		<{/foreach}>
	</p>
</div>

<script type="text/javascript">
function search_tab_submit()
{
	$('form[name=search]').submit();
	return false;
}

function search_type(type)
{
	var form = $('form[name=search]');
	var search_type = document.getElementById('search_type');
	search_type.value = type;
	if (type == 'pc')
		form.attr('action', '/s/pc.html');
	else
		form.attr('action', '/s/cuxiao.html');
}
</script>
